<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <meta charset="utf-8">
    <title>{{$data.title}} - 后台管理</title>
    <link href="{{$smarty.const.APP_URL}}templates/admin/css/admin.css" type="text/css" rel="stylesheet">
    <link href="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/black.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/artDialog/jquery.artDialog.min.js"></script>
    <script type="text/javascript" src="{{$smarty.const.APP_URL}}templates/admin/js/admin.js"></script>
    <script type="text/javascript">
        var this_uri = "/admin/index";
    </script>
</head>
<body>

<div id="header">
    <div class="logo"><a href="/admin/"><img src="{{$smarty.const.APP_URL}}templates/admin/images/logo.png" title="后台首页"></a></div>
    <div class="loading"><div id="ajax-loader" title="Ajax数据更新中..."></div></div>
    <div id="topbar">
        <!--顶部菜单 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topmenu.html"}}
        <!--顶部菜单 end-->
        <!--顶部右侧 start-->
        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/topuser.html"}}
        <!--顶部右侧 end-->
        <div></div>
    </div>
</div>

<div><!-- 外层添加一个DIV解决IE8下margin-top的问题 -->
    <table id="maintable" cellpadding="0" cellspacing="0">
        <tbody><tr>
            <!--左侧菜单 start-->
            {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/leftmenu.html"}}
            <!--左侧菜单 end-->
            <td class="maintd" valign="top">
                <div class="maindiv">
                    <div id="main"><div class="itemtitle"><h3>欢迎进入找金银网管理中心</h3><ul><a class="link-btn" href="/admin/product/add">添加产品</a><a class="link-btn" href="/admin/article/add">添加文章</a><a class="link-btn" href="/admin/news/add">添加新闻</a><a class="link-btn" href="/admin/template">切换模板</a></ul></div><table class="tb"><tbody><tr><td colspan="38" class="tbheader">系统信息</td></tr><tr><td colspan="38" class="td" valign="middle"><div class="tips"><ul><li>欢迎 <u>系统管理员</u> 进入后台管理面板! 为了确保系统安全, 请在关闭前点击 <a href="" onclick="$.dialog({title:'操作确认',lock:true,content:'确定退出找金银网系统吗?',okValue:'  确定  ',ok:function(){window.location='/admin/index/logout';},cancelValue:'取消',cancel:true});return false;">退出</a> 安全离开!</li>
                        <li></li>
                        <li></li></ul></div></td></tr></tbody></table><br><br>
                        <table class="tb">
                            <tbody>
                            <tr>
                                <td colspan="38" class="tbheader">基本数据统计</td>
                            </tr>
                            <tr>
                                <td class="td">1)</td>
                                <td class="td">用户总数: <font class="greenb">1</font></td>
                                <td class="td">未激活用户数: <font class="">0</font></td>
                                <td class="td last"><a class="link-btn" href="/admin/user/index">管理用户</a></td>
                            </tr>
                            <tr>
                                <td class="td">2)</td>
                                <td class="td">产品总数: <font class="">0</font></td>
                                <td class="td">未发布产品数: <font class="">0</font></td>
                                <td class="td last"><a class="link-btn" href="/admin/product/index">管理产品</a></td>
                            </tr>
                            <tr>
                                <td class="td">3)</td>
                                <td class="td">产品组图片数: <font class="">0</font></td>
                                <td class="td">未发布组图片数: <font class="">0</font></td>
                                <td class="td last"><a class="link-btn" href="/admin/product/index">管理产品</a></td>
                            </tr>
                            <tr>
                                <td class="td">4)</td>
                                <td class="td">文章总数: <font class="">0</font></td>
                                <td class="td">未发布文章数: <font class="">0</font></td>
                                <td class="td last"><a class="link-btn" href="/admin/article/index">管理文章</a></td>
                            </tr>
                            <tr>
                                <td class="td">5)</td>
                                <td class="td">新闻总数: <font class="">0</font></td>
                                <td class="td">未发布新闻数: <font class="">0</font></td>
                                <td class="td last"><a class="link-btn" href="/admin/news/index">管理新闻</a></td>
                            </tr>
                            <tr>
                                <td class="td">6)</td>
                                <td class="td">常态内容数: <font class="greenb">8</font></td>
                                <td class="td">&nbsp;</td>
                                <td class="td last"><a class="link-btn" href="/admin/contents/index">常态内容</a></td>
                            </tr>
                            </tbody>
                        </table>
                        <!--底部信息 start-->
                        {{include file="{{$smarty.const.APP_PATH}}Admin/View/public/sysinfo.html"}}
                        <!--底部信息 end-->
                    </div>
                </div>
            </td>
        </tr>
        </tbody></table>
</div>

<script type="text/javascript">
    jQuery(document).ready(function() {
        //调整高度
        $("#container").height($(window).height()-40);
        $(window).resize(function() {
            $("#container").height($(window).height()-40);
        });

        App.init();//左侧菜单初始化

        var a101 = $("#topbar"); //顶部下接菜单
        a101.find("dl").Jdropdown({delay: 0}, function(a){});

        //全选checkbox
        $("#checkAll").click(function(e){
            $("input[name='" + $(this).attr("for") + "']").attr("checked", this.checked);
        });
    });
</script>
</body>
</html>